/**
 * 
 */
package br.com.ufrn.aipetro.ga.model.persist.hibernate;

import org.hibernate.Session;

import br.com.ufrn.aipetro.ga.domain.entity.device.controller.Controller;
import br.com.ufrn.aipetro.ga.model.persist.hibernate.util.HibernateUtil;
import br.com.ufrn.aipetro.ga.persist.interfaces.ControllerDao;

/**
 * 
 * @author Lucas
 *
 */
public class HibernateControllerDao extends ControllerDao {
	
	Session session;
	Class entityClass;
	
	public HibernateControllerDao(Class entityClass) {
		this.session = HibernateUtil.getSessionFactory().getCurrentSession();
		this.entityClass = entityClass;
		basicDao = new HibernateBasicDao<Controller>(session, entityClass);
	}
}
